<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Cheques.aspx.cs" Inherits="Reportes_Cheques" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="contenido" Runat="Server">
    <table width="100%">
        <tr>
            <td style="width: 101px; text-align: right">
                Cuenta Cte. :</td>
            <td style="width: 200px; text-align: left;">
                <asp:DropDownList ID="ddlCuentaCorriente" runat="server" Width="200px" OnSelectedIndexChanged="ddlCuentaCorriente_SelectedIndexChanged" AutoPostBack="True">
                </asp:DropDownList></td>
            <td style="width: 100px; text-align: right">
                Chequera :</td>
            <td style="text-align: left;" colspan="2">
                <asp:DropDownList ID="ddlChequera" runat="server" Width="200px">
                </asp:DropDownList>
                <asp:Button ID="Button1" runat="server" CssClass="botonBuscar" OnClick="Button1_Click"
                    Text="Buscar" />
                    <a href="../Impresiones/cheques.aspx" target="popup" onClick="window.open(this.href, this.target, 'width=800,height=1000'); return false;">Imprimir</a>
            
            </td>
        </tr>
        <tr>
            <td style="width: 101px; text-align: right" valign="top">
                Emitido :</td>
            <td style="width: 200px; text-align: left">
                <asp:CheckBox ID="chbEmitido" runat="server" /></td>
            <td style="width: 100px; text-align: right">
                Pagado :</td>
            <td colspan="2" style="text-align: left">
                <asp:CheckBox ID="chbPagado" runat="server" /></td>
        </tr>
        <tr>
            <td align="left" colspan="5">
                <asp:GridView ID="gdvCheques" runat="server" AutoGenerateColumns="False" Width="70%">
                    <Columns>
                        <asp:TemplateField HeaderText="Banco">
                            <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%# Eval("Chequera.CuentaCorriente.Banco.Nombre") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Cuenta Cte.">
                            <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%# Eval("Chequera.CuentaCorriente.Numero") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="N&#186; Chequera">
                         <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%# Eval("Chequera.Numero") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="N&#186; Cheque">
                            <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%# Eval("Numero") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Detalle">
                             <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%# Eval("Detalle") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Fecha Emision">
                            <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%# ((DateTime) Eval("FechaEmision"))==new DateTime(1900,1,1)?" - ":((DateTime) Eval("FechaEmision")).ToString("dd-MM-yyyy") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Fecha Pago">
                             <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%# ((DateTime) Eval("FechaPago"))==new DateTime(1900,1,1)?" - ":((DateTime) Eval("FechaPago")).ToString("dd-MM-yyyy") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Monto">
                            <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%# "$" +Eval("Monto") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Nulo">
                            <ItemTemplate>
                                <asp:CheckBox ID="CheckBox1" runat="server" Checked='<%# Eval("Nulo") %>' Enabled="False" />
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <RowStyle CssClass="RowStyle" />
        <PagerStyle CssClass="PagerStyle" />
        <HeaderStyle CssClass="HeaderStyle" />
        <AlternatingRowStyle CssClass="AltRowStyle" />
        <SelectedRowStyle CssClass="SelectedRowStyle" />
                </asp:GridView>
            </td>
        </tr>
    </table>
</asp:Content>

